<template>
<view class='uni-icon' :style='style' />
</template>

<script setup lang="ts">
  import { IconProps } from '../props'
  import { useIconfont } from '../useIconfont'
  import { computed } from 'vue'
  const props = defineProps(IconProps)
  const {
  colors,
  svgSize,
  quot,
  isStr,
  } = useIconfont(props)
  const style = computed(() => {
      return `background-image: url(${quot.value}data:image/svg+xml, %3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='${svgSize.value}px' height='${svgSize.value}px'%3E%3Cpath d='M903.37 400.67L782.57 210.2c-10.55-16.61-32.59-21.52-49.25-11.07L130.44 580.52c-16.61 10.55-21.52 32.59-11.09 49.16l120.8 190.5c10.55 16.57 32.59 21.48 49.2 11.02l602.9-381.36c16.66-10.56 21.67-32.57 11.12-49.17z m-24.06 28.69l-602.9 381.41c-5.33 3.36-12.31 1.79-15.67-3.52l-120.8-190.5c-3.36-5.33-1.79-12.29 3.54-15.7L746.4 219.66c5.34-3.34 12.34-1.76 15.65 3.55l120.85 190.5c3.25 5.22 1.65 12.22-3.59 15.65zM359.59 308.5l10.01 24.01 12.97-22.54 25.91-2.09-17.46-19.32 5.95-25.26-23.69 10.65-22.25-13.47 2.82 25.87-19.74 16.83 25.48 5.32z m153.51-71.49l-12.45-22.86-10.55 23.8-25.61 4.89 19.34 17.34-3.34 25.77 22.55-13.04 23.52 11.16-5.43-25.47 17.83-18.89-25.86-2.7z m234.04 382.94l-20.61-15.84-0.09 25.97-21.52 14.6 24.79 8.18 7.31 24.93 15.37-20.98 26.01 0.73-15.27-21.1 8.81-24.37-24.8 7.88z m-84.12 103.53l-9.83-24.08-13.18 22.44-25.9 1.88 17.3 19.41-6.16 25.23 23.82-10.41 22.16 13.77-2.61-25.9 19.73-16.8-25.33-5.54z m-154.1 70.4l12.34 22.95 10.76-23.73 25.61-4.58-19.22-17.53 3.53-25.75-22.65 12.81-23.41-11.33 5.22 25.42-18.1 18.83 25.92 2.91zM278.08 409.13l20.49 16.1 0.3-25.99 21.62-14.52-24.65-8.34-7.12-25.05-15.55 20.84-26.01-0.94 15.06 21.2-8.98 24.44 24.84-7.74z m-91.52 112.2c-2.73-110.02 50.78-218.78 150.46-281.83 99.7-63.04 220.9-64.83 319.35-15.44l23.78-15.04c-29.13-16.28-60.48-28.2-93.49-35.6-44.11-9.92-89.03-11.16-133.45-3.85-45.98 7.61-89.45 24.2-129.16 49.37-39.69 25.16-73.34 57.31-99.89 95.61-25.71 36.94-43.77 78.09-53.71 122.12-7.4 32.96-10.03 66.38-7.73 99.68l23.84-15.02z m647.42-16.82c2.84 110.02-50.66 218.79-150.34 281.81-99.68 63.11-220.9 64.85-319.33 15.46l-23.82 15.06c29.14 16.24 60.5 28.18 93.52 35.58 44.1 9.92 89.03 11.21 133.44 3.85 45.98-7.61 89.45-24.18 129.14-49.34 39.69-25.17 73.34-57.31 99.91-95.59 25.61-36.98 43.68-78.1 53.6-122.11 7.42-32.99 10.01-66.43 7.7-99.73l-23.82 15.01zM408.91 352.95c27.92-17.63 58.63-27.03 89.46-28.91l36.8-23.26c-48.62-5.73-97.31 5.22-139.32 31.75-41.9 26.5-72.61 65.86-88.19 112.2l36.77-23.26c14.95-27.17 36.59-50.85 64.48-68.52z m202.81 319.92c-27.92 17.67-58.6 27.07-89.43 28.95l-36.77 23.27c48.59 5.73 97.26-5.24 139.29-31.77 41.9-26.48 72.61-65.86 88.16-112.2l-36.75 23.31c-14.94 27.03-36.61 50.82-64.5 68.44z m0 0' fill='${(isStr.value ? colors.value : colors.value[0]) || 'rgb(51,51,51)'}' /%3E%3Cpath d='M213.1 618.78l108.85-69.82 0.87-11.77 18.62 1.14-3.74 8.94c16.99 26.49 28.43 43.78 34.3 51.84l-8.63 11.15-6.38-9.93-94.68 60.73 36.96 57.62c4.03 7.39 10.38 7.99 19.04 1.8l89.47-57.38c9.23-5.29 12.21-11.57 8.96-18.84-3.26-7.26-8.6-17.23-16.03-29.91l3.73-2.39c14.45 22.52 25.68 31.83 33.7 27.93 0.63 10.82-5.82 19.92-19.3 27.33l-103.63 66.47c-10.16 7.13-18.66 4.82-25.53-7-29.16-45.47-46.27-71.58-51.3-78.33l20.97-5.04-2.99 8.47 3.4 5.3 94.69-60.73-28.46-44.37-85.74 55c-6.47 4.14-12.01 8.63-16.62 13.46l-10.53-1.67z m0 0' fill='${(isStr.value ? colors.value : colors.value[1]) || 'rgb(51,51,51)'}' /%3E%3Cpath d='M304.42 742.6c-7.36 0-13.72-4.49-18.9-13.36-28.86-44.99-46.04-71.23-51.05-77.97l-4.41-5.93 36.88-8.86-4.66 13.19 85.43-54.79-23.2-36.16-81.63 52.36c-6.11 3.92-11.4 8.2-15.73 12.73l-1.77 1.84-25.73-4.04 117.61-75.43 1.04-14.15 30.27 1.86-5.39 12.91c16.15 25.16 27.17 41.79 32.76 49.45l2.16 2.96-15.1 19.5-7.47-11.65-86.48 55.47 34.5 53.81c1.9 3.49 3.63 3.49 4.36 3.49 1.33 0 3.72-0.58 7.57-3.32l0.2-0.14 89.68-57.51c10.01-5.74 7.93-10.38 6.93-12.62-3.17-7.07-8.48-16.97-15.78-29.44l-2.37-4.04 11.77-7.55 2.63 4.1c15.37 23.96 23.18 26.55 25.83 26.55 0.59 0 1.11-0.12 1.63-0.37l6.58-3.2 0.42 7.3c0.73 12.76-6.55 23.46-21.67 31.81l-103.41 66.33c-4.61 3.24-9.16 4.87-13.5 4.87z m-57.93-91.17c7.89 11.57 23.74 35.91 47.29 72.63l0.11 0.18c3.32 5.71 6.86 8.6 10.53 8.6 2.32 0 5.01-1.06 7.99-3.15l0.17-0.11 2.56-1.64c-2.52 1.1-4.92 1.64-7.22 1.64-3.73 0-8.98-1.46-12.84-8.41l-44.1-68.77 0.79-2.25-5.28 1.28z m173.02-12.78c0.58 1.2 1.14 2.4 1.69 3.62 2.11 4.73 3.79 13.11-5.1 20.92l0.4-0.24c9.33-5.13 14.71-10.86 16.31-17.41-4.17-0.45-8.56-2.71-13.3-6.89z m-58.32-40.82l2.56 3.99 2.18-2.82c-6.34-9-16.96-25.13-32.33-49.09l-1.38-2.15 2.08-4.97-6.97-0.43-0.23 3.13 0.37-0.23 33.72 52.57z m0 0' fill='${(isStr.value ? colors.value : colors.value[2]) || 'rgb(4,0,0)'}' /%3E%3Cpath d='M544.73 585.83c1.72 2.98 1.6 5.81-0.35 8.48-2.7 3.57-6.34 5.63-10.92 6.17-2.53 0.13-4.61-1.11-6.23-3.71L448.4 470.62l-45.49 28.43-8.34 7.17c-0.78 1.07-1.45 1.27-2.01 0.61a51.906 51.906 0 0 1-5.08-4.65c-0.67-0.6-0.22-1.16 1.33-1.7l10.22-4.86 1.25-0.78 100.52-62.81c0.31-0.2 0.68-0.42 1.09-0.68 0.64-0.83 0.97-1.69 1-2.58 0.23-5.65 0.86-11.26 1.88-16.82 0.25-1.46 1.23-2.21 2.93-2.27 8.43-0.19 16.48 1.22 24.17 4.24 1.25 0.38 1.92 0.98 1.99 1.8 0.04 0.99-0.62 1.91-1.97 2.75l-22.98 14.36-5.47 3.42-37.52 23.44 17.19 27.51c10.75-3.67 20.45-5.53 29.11-5.58 10.81-0.09 19.94 1.88 27.39 5.92 5.97 3.52 10.08 8.13 12.33 13.82 1.67 3.6 1.37 6.83-0.9 9.69-2.16 2.8-4.78 4.29-7.86 4.47-6.15 0.37-11.91-1.54-17.27-5.73-6.84-5.14-14.65-9.18-23.43-12.1-5.13-1.72-10.03-2.71-14.69-2.99l56.94 91.13zM582.97 399.57l-8.17 6.41c-1.06 1.09-1.77 1.47-2.13 1.11-1.52-1.51-2.96-3-4.32-4.47-0.47-0.28-0.15-0.7 0.96-1.25l11.02-6.02 11.88-7.42c-2.2-3.98-4.77-8.32-7.7-13.01-1.63-2.6-3.16-5.05-4.59-7.35-0.65-1.04-0.66-1.76-0.04-2.15 5.5-3.72 11.81-6.95 18.95-9.67 2.41-0.78 4.01-0.55 4.79 0.7 0.78 1.25 0.43 2.78-1.05 4.57-0.81 0.8-0.94 1.75-0.39 2.85 2.38 4.74 4.69 9.24 6.92 13.5l13.76-8.6c0.77-0.62 1.17-1.38 1.19-2.27 0.39-2.85 1.06-5.73 1.99-8.64 0.37-0.81 1.04-1.23 2.03-1.27 5.4-0.62 10.8-0.8 16.18-0.55 1.81-0.11 3.16 0.42 4.04 1.6 0.72 1.15 0.63 2.51-0.27 4.08-0.43 0.7-0.45 1.37-0.06 1.99 3.15 5.28 6.41 11.07 9.77 17.37 3.22 6.54 5.23 12.67 6.06 18.39 0.31 5.6-0.49 10.81-2.41 15.63-2.46 4.87-6 8.96-10.59 12.27-2.12-3.16-4.58-5.47-7.37-6.92-2.76-1.17-7.17-1.39-13.23-0.65-1.97 0.8-3.19 0.47-3.65-0.98-0.4-1.34 0.05-2.35 1.37-3.03 5.8-2.32 9.76-4.21 11.88-5.68 2.48-3 3.52-6.19 3.15-9.57-0.56-4.14-2.44-9.13-5.64-14.95-2.67-4.27-5.72-9.03-9.14-14.28l-16.88 10.55c2.18 4.87 4.23 9.32 6.15 13.33 3.91 9.73 5.92 18.98 6.03 27.75 0.14 7.88-1.51 15.8-4.95 23.74-2.98 6.36-6.88 12.42-11.69 18.17-0.81 0.79-1.5 1.08-2.07 0.86-0.56-0.66-0.61-1.43-0.14-2.3 2.23-5.01 3.75-10.46 4.57-16.33 0.69-6.08 0.63-11.98-0.19-17.7-0.98-6.2-2.69-12.3-5.14-18.31-2.42-5.73-5.12-11.44-8.09-17.12-0.46-0.73-0.81-1.3-1.08-1.72l-11.71 7.34z m143.28 74.14c1.65 2.88 1.6 5.81-0.16 8.79-2.7 3.57-6.34 5.63-10.92 6.17-2.49-0.04-4.42-1.15-5.78-3.34l-17.97-28.76c-2.09 8.26-5.27 16.62-9.54 25.09-9.51 17.25-20.17 31.37-31.99 42.38-0.85 0.96-1.62 1.23-2.33 0.8-0.56-0.66-0.57-1.6-0.02-2.81 7.98-10.64 14.99-23.79 21.01-39.43 5.85-15.68 7.99-29.77 6.41-42.26l-44.08 27.55-8.34 7.17c-0.78 1.07-1.45 1.27-2.01 0.61a51.906 51.906 0 0 1-5.08-4.65c-0.67-0.6-0.22-1.17 1.33-1.7l10.22-4.86 1.25-0.78 48.62-30.38-9.71-15.89c-0.63-0.77-1.07-1.36-1.33-1.78-0.39-0.63-0.22-1.17 0.51-1.62 5.74-2.86 11.96-5.66 18.66-8.4 3.58-1.22 5.89-1 6.94 0.67 1.11 1.77 0.58 3.84-1.56 6.19-0.85 0.96-0.85 2.13 0 3.48l3.85 6.51 32.05-20.02c0.31-0.2 0.68-0.42 1.09-0.68 0.64-0.83 0.97-1.69 1-2.58 0.24-5.65 0.86-11.26 1.88-16.82 0.25-1.46 1.23-2.21 2.93-2.27 8.43-0.19 16.48 1.22 24.17 4.24 1.25 0.38 1.92 0.98 1.99 1.8 0.04 0.99-0.62 1.91-1.97 2.75l-22.98 14.36-5.47 3.42-31.11 19.44c6.11 2.13 12.51 3.56 19.21 4.3 6.97 0.72 14.39 0.65 22.25-0.21 7.49-0.77 14.94-2.52 22.35-5.27 8.02-2.7 14.66-5.76 19.91-9.18 0.98-0.75 1.65-0.96 2.01-0.61 0.62 0.77 0.7 1.59 0.23 2.46-1.88 3.49-2.9 7.53-3.07 12.13 0.65 4.52 1.64 7.96 2.97 10.32 0.65 1.04 0.04 1.93-1.82 2.66-6.7 2.74-14.3 4.37-22.8 4.9-7.37 0.26-14.01-0.16-19.91-1.25-6.51-1.15-13.26-3.02-20.24-5.61-7.18-2.91-13.42-5.82-18.72-8.74l26.07 41.71z m-31.86-90.29c1.76 2.81 2.09 5.43 1 7.85-1.55 2.85-3.75 5.25-6.6 7.17-2.29 1.43-4.44 2.05-6.45 1.86-1.23-0.1-2.47-1.28-3.73-3.54l-34.87-55.81c-0.2-0.31-0.48-0.64-0.84-1-0.35-0.79 0.13-1.31 1.43-1.54 6.08-1.63 13.11-2.68 21.06-3.16l20.48-12.8c0.63-0.39 1.02-1.15 1.19-2.27 0.25-2.62 0.63-5.03 1.13-7.23 0.26-0.74 0.85-1.19 1.78-1.33 6.49-1.45 13.2-1.95 20.15-1.5 1.9 0.26 3.18 0.91 3.83 1.95 0.78 1.25 0.37 3.03-1.23 5.33-0.72 1.17-0.65 2.44 0.2 3.79l24.22 38.77c1.2 2.15 1.29 4.27 0.27 6.35-1.22 2.22-3.62 4.65-7.17 7.31-2.4 1.5-4.46 1.91-6.17 1.25-1.55-0.62-3.01-2.03-4.38-4.22l-3.91-6.25-23.92 14.95 2.53 4.07z m18.74-23.23l-21.39-34.23c-1-0.68-1.77-0.63-2.31 0.14l-21.42 13.38-0.68 0.65 21.88 35.02 23.92-14.96z' fill='${(isStr.value ? colors.value : colors.value[3]) || 'rgb(51,51,51)'}' /%3E%3C/svg%3E${quot.value}); width: ${svgSize.value}px; height: ${svgSize.value}px;`
  })
</script>
